package com.tangyuan.decoration;

/**
 * @Author tangyuan
 * @Description:调料:葡萄干
 * @Data 2018/4/6
 */
public class Raisin extends CondimentDecorator {

    private Beverage beverage;

    public Raisin(Beverage beverage){
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return beverage.getDescription() +  " ,raisin ";
    }

    @Override
    public double cost() {
        return 0.5 + beverage.cost();
    }
}
